find_package(Eigen3 REQUIRED)

MESSAGE(STATUS "Eigen3 include dir: ${EIGEN3_INCLUDE_DIR}")

add_executable(use_eigen use_eigen.cpp)
target_include_directories(use_eigen PRIVATE ${EIGEN3_INCLUDE_DIR})

add_executable(eigen_trick eigen_trick.cpp)
target_include_directories(eigen_trick PRIVATE ${EIGEN3_INCLUDE_DIR})


